package com.atguigu.task;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component

public class Timer {
    @Scheduled(cron = "0/2 * * * * ?")
    public void timer() {

        System.out.println("Timer");
    }

}
